{# program template #}
{% extends "base.html.twig" %}

{% block content %}
    {% include 'navbar.html.twig' %}
    <div class="row" style="margin-top: 30px;">
        <div class="col-xs-12 col-lg-6 col-lg-offset-3">
            <h3 class="text-center page-header">Program</h3>
        </div>
    </div>
    {% block info %}
        {%if success is not empty %}
            <div class="col-xs-12"><h3 class="text-center"><span class="label label-success">{{ success }}</span></h3></div>
        {% endif %}
        <div class="row">
            <div class="col-xs-12 col-lg-5 col-lg-offset-1">
                <h4 class="text-center">General Info</h4>
                <table class="table table-striped table-bordered">
                    
                <form action="{{ urlFor('new-event') }}" style="margin-bottom:30px">
                    <button class="btn btn-block btn-primary" type="submit">Add new event</button>
                </form>
            </div>
            <div class="col-xs-12 col-lg-5">
                <h4 class="text-center">For Kids</h4>
                <table class="table table-striped table-bordered">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Name</th>
                            <th>Order number</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for venue in venues %}
                            <tr>
                                <td>{{ venue.venue_id }}</td>
                                <td>{{ venue.venue_name }}</td>
                                <td>{{ venue.venue_order_number }}</td>
                                <td><a href="{{ currentUrl() }}edit/venue/{{ venue.venue_id }}">Edit</a></td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
                <form action="{{ urlFor('new-venue') }}" style="margin-bottom:30px">
                    <button class="btn btn-block btn-primary" type="submit">Add new venue</button>
                </form>
            </div>
            <div class="col-xs-12 col-lg-5">
                <h4 class="text-center">About Lahti</h4>
                <table class="table table-striped table-bordered">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Name</th>
                            <th>Order number</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for venue in venues %}
                            <tr>
                                <td>{{ venue.venue_id }}</td>
                                <td>{{ venue.venue_name }}</td>
                                <td>{{ venue.venue_order_number }}</td>
                                <td><a href="{{ currentUrl() }}edit/venue/{{ venue.venue_id }}">Edit</a></td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
                <form action="{{ urlFor('new-venue') }}" style="margin-bottom:30px">
                    <button class="btn btn-block btn-primary" type="submit">Add new venue</button>
                </form>
            </div>
        </div>
    {% endblock %}
{% endblock %}
